package com.bookmall.cart.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 获取配置文件中的线程池属性
 * @Author 胡菜鸡
 * @Create 2022-04-13-15:10
 */
@ConfigurationProperties(prefix = "bookmall.thread")
@Component
@Data
public class ThreadPoolConfigProperties {
    private Integer coreSize;
    private Integer maxSize;
    private Integer keepAliveTime;
}
